﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
	x:Class="intelliSys.Management.Automation.Test.GenericList"
	xmlns:clr="clr-namespace:System;assembly=mscorlib"
	x:Name="Window"
	Title="MainWindow"
  Width="640" Height="700" WindowStyle="None" Background="{x:Null}" Foreground="{x:Null}" AllowsTransparency="True" ResizeMode="CanResizeWithGrip" FontFamily="Segoe UI Light" WindowStartupLocation="CenterScreen">

    <Border CornerRadius="10" Margin="0,0,1.274,2.5" BorderBrush="#FF3995FF" BorderThickness="1" Background="#F20E1620">

        <Grid x:Name="LayoutRoot" Margin="0">
            <Border BorderBrush="CornflowerBlue" BorderThickness="1" Height="32" Margin="0,-2,-1,0" VerticalAlignment="Top" CornerRadius="10,10,0,0" Background="#FF0D5094"/>
            <Rectangle Margin="-319.002,-290.379,35.609,0" RenderTransformOrigin="0.5,0.5" Height="596" VerticalAlignment="Top" d:IsLocked="True">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.725,0.915" StartPoint="0.275,0.085">
                        <GradientStop Color="#00000000" Offset="0.63"/>
                        <GradientStop Color="#33FFFFFF"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
                <Rectangle.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform Angle="128.964"/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Rectangle.RenderTransform>
            </Rectangle>
            <Rectangle HorizontalAlignment="Left" Height="148.738" Margin="38,-1.665,0,0" StrokeThickness="2" VerticalAlignment="Top" Width="197" d:IsLocked="True">
                <Rectangle.Fill>
                    <RadialGradientBrush GradientOrigin="0.441,0.004" Center="0.474,0.088" RadiusY="0.385" RadiusX="0.41">
                        <GradientStop Color="#002F649A" Offset="0.735"/>
                        <GradientStop Color="#B2FFFFFF"/>
                    </RadialGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <Rectangle HorizontalAlignment="Left" Height="105.702" Margin="38,-2,0,0" StrokeThickness="7" VerticalAlignment="Top" Width="140" d:IsLocked="True">
                <Rectangle.Stroke>
                    <LinearGradientBrush EndPoint="0.017,0.498" StartPoint="1.05,0.514">
                        <GradientStop Color="#00104F8E" Offset="0"/>
                        <GradientStop Offset="1"/>
                        <GradientStop Color="White" Offset="0.505"/>
                        <GradientStop Color="#0033679D" Offset="0.992"/>
                    </LinearGradientBrush>
                </Rectangle.Stroke>
                <Rectangle.OpacityMask>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="Black" Offset="0"/>
                        <GradientStop Offset="0.057"/>
                    </LinearGradientBrush>
                </Rectangle.OpacityMask>
            </Rectangle>
            <Button x:Name="Comfirm" Click="Comfirm_Click"  Content="确定" HorizontalAlignment="Right" Height="23" Margin="0,0,97.397,21" VerticalAlignment="Bottom" Width="70.5" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="White"  BorderThickness="0" Template="{DynamicResource ButtonControlTemplate1}"/>
            <Button x:Name="Cancel" Click="Cancel_Click" Content="取消" HorizontalAlignment="Right" Height="23" Margin="0,0,26.897,21" VerticalAlignment="Bottom" Width="70.5" Template="{DynamicResource ButtonControlTemplate1}" Foreground="White"/>
            <TextBlock Height="25" Margin="8,5,8,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="13.333" Foreground="White" TextAlignment="Center"><Run Language="zh-cn" Text="查看列表- "/><Run Text="intelliSys"/><Run Language="zh-cn" Text=" Management"/><Run Text=" Automation"/></TextBlock>
            <ComboBox SelectionChanged="commandBox_SelectionChanged" x:Name="commandBox" HorizontalAlignment="Left" Height="24" Margin="32,48.167,0,0" VerticalAlignment="Top" Width="142.941">
                <ComboBoxItem Content="试题" />
                <ComboBoxItem Content="试卷" />
                <ComboBoxItem Content="知识点" />
            </ComboBox>
            <TextBox FontFamily="微软雅黑" FontStyle="Italic" Height="24" Margin="198.171,50.324,31,0" TextWrapping="Wrap" Text="Type to search" VerticalAlignment="Top" Style="{DynamicResource TextBoxStyle}" Background="{x:Null}" Foreground="White" PreviewMouseLeftButtonDown="TextBox_MouseLeftButtonDown" TextChanged="TextBox_TextChanged" x:Name="SearchBox" BorderThickness="1" />
            <ListBox x:Name="list" ItemContainerStyle="{DynamicResource ListBoxItemStyle1}"  Margin="32,103.702,31,71" Background="{x:Null}" Opacity="0.9" SelectionMode="Extended">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <CheckBox Foreground="Gray" Content="启用" IsEnabled="{Binding IsEnabled,ElementName=commandBox}" IsChecked="{Binding IsEnabled,Mode=TwoWay}" Click="CheckBox_Click"/>
                            <StackPanel Orientation="Vertical" Margin="10" Height="60">
                                <TextBlock Text="{Binding Title}"  FontSize="20" Foreground="White"/>
                                <TextBlock Text ="{Binding Summary}" Foreground ="LightGray" FontSize="15"/>
                            </StackPanel>
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>

        </Grid>
    </Border>
</Window>